package com.threeox.ormlibrary.inter;

import com.threeox.ormlibrary.entity.SQLExecuteType;

/**
 *
 * @ClassName: OnSqlListener
 *
 * @Description: Todo(SQL语句操作的回调接口)
 *
 * @author 赵屈犇
 *
 * @date 创建时间:2017/4/26 上午12:13
 *
 * @version 1.0
 */
public interface OnSqlListener {

    /**
     * 执行SQL语句成功
     *
     * @param data
     */
    public abstract void success(SQLExecuteType executeType, Object data);

    /**
     * 执行SQL语句失败
     * @param msg
     */
    public abstract void failed(SQLExecuteType executeType, Object msg);

}
